package cn.outsourcing.supermarket.converter;

import cn.outsourcing.supermarket.po.HiolabsAdmin;
import cn.outsourcing.supermarket.vo.hiolabs.HiolabsAdminVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author gzkemays
 * @since 2021/11/5 15:24
 */
@Mapper
public interface HiolabsAdminConverter {
  HiolabsAdminConverter INSTANCE = Mappers.getMapper(HiolabsAdminConverter.class);

  /**
   * 转化为自身值对象
   *
   * @param admin 原 po 对象
   * @return 自身值对象
   */
  HiolabsAdminVO convertToVo(HiolabsAdmin admin);
  /**
   * 转化为自身值对象 list
   *
   * @param admin 原 po 对象
   * @return 自身值对象 list
   */
  List<HiolabsAdminVO> convertToVoList(List<HiolabsAdmin> admin);
}
